package com.proback.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class BookDataAddRequest {
    private Byte type; // 0收入，1支出

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 添加格式注解
    private LocalDateTime bookDate;

    private String category;
    private BigDecimal price;
    private String remark;
    private Integer userId;
    private String source; // 默认值: 其它
}